package com.example.doma.mapper;

import com.example.doma.pojo.pim;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface pimMapper {
    @Select("select * from pim")
    List<pim> getpims();
    pim getpimByid(int id);
    int add(pim pim);
    int deleteByid(int id);
    int update(pim pim);
}
